package com.zlp.spring.v2.service.impl;

import com.zlp.spring.v2.service.UserService;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

@Service
@Scope(value = "prototype")
public class UserServiceImpl implements UserService {

    private UserServiceImpl() {
        System.out.println(" lazy 加载方式... ");
    }
    public String getUser() {
        return " hello userName=change age = 28";
    }
}
